//
//  CXDatePickerSheetView.m
//  各种自定义小功能
//
//  Created by 蔡翔 on 16/8/2.
//  Copyright © 2016年 蔡翔. All rights reserved.
//


#import "CXDatePickerSheetView.h"

@interface CXDatePickerSheetView ()
@property (weak, nonatomic) IBOutlet UIButton *cancelBtn;
@property (weak, nonatomic) IBOutlet UIButton *sureBtn;
@property (weak, nonatomic) IBOutlet UIView *toolView;
@end

@implementation CXDatePickerSheetView
- (void)setTitleColor:(UIColor *)titleColor
{
    _titleColor = titleColor;
    [self.cancelBtn setTitleColor:titleColor forState:UIControlStateNormal];
    [self.sureBtn setTitleColor:titleColor forState:UIControlStateNormal];
}
- (void)setToolBgColor:(UIColor *)toolBgColor
{
    _toolBgColor = toolBgColor;
    self.toolView.backgroundColor = toolBgColor;
}
- (void)addTargetCancelBtn:(id)target action:(SEL)action {
    [self.cancelBtn addTarget:target action:action forControlEvents:(UIControlEventTouchUpInside)];
}

- (void)addTargetSureBtn:(id)target action:(SEL)action {
    [self.sureBtn addTarget:target action:action forControlEvents:(UIControlEventTouchUpInside)];
}
- (void)addTargetImmediatelyBtn:(id)target action:(SEL)action{
    [self.immediatelyButton addTarget:target action:action forControlEvents:(UIControlEventTouchUpInside)];
}


@end
